import request from '@/utils/request'

// 查询【请填写功能名称】列表
export function listAreas(query) {
  return request({
    url: '/system/areas/list',
    method: 'get',
    params: query
  })
}

export function deliverGoodsApi() {
  return request({
    url: '/system/wx-pay/getaccess',
    method: 'get'
  })
}

export function getAreaList(areaId) {
  return request({
    url: '/system/areas/getAreaList/' + areaId,
    method: 'get'
  })
}

// 查询【请填写功能名称】详细
export function getAreas(busAreasId) {
  return request({
    url: '/system/areas/' + busAreasId,
    method: 'get'
  })
}

export function compareResourcesDeleteAPI() {
  return request({
    url: '/utils/compare/resources/delete',
    method: 'put'
  })
}

// 新增【请填写功能名称】
export function addAreas(data) {
  return request({
    url: '/system/areas',
    method: 'post',
    data: data
  })
}

// 修改【请填写功能名称】
export function updateAreas(data) {
  return request({
    url: '/system/areas',
    method: 'put',
    data: data
  })
}

// 删除【请填写功能名称】
export function delAreas(busAreasId) {
  return request({
    url: '/system/areas/' + busAreasId,
    method: 'delete'
  })
}
